2004-05-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+ previous change to this function, clarify the docs instead.
+
* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
GTK_SELECTION_BROWSE.
2004-05-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+ previous change to this function, clarify the docs instead.
+
* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
GTK_SELECTION_BROWSE.
2004-05-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+ previous change to this function, clarify the docs instead.
+
* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
GTK_SELECTION_BROWSE.
2004-05-11 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Revert the
+ previous change to this function, clarify the docs instead.
+
* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
GTK_SELECTION_BROWSE.
* separated by '/'. Elements which don't have a name or action attribute in
* the XML (e.g. <popup>) can be addressed by their XML element name
* (e.g. "popup"). The root element ("/ui") can be omitted in the path.
+ *
+ * Note that the widget found by following a path that ends in a <menu>
+ * element is the menuitem to which the menu is attached, not the menu itself.
*
* Return value: the widget found by following the path, or %NULL if no widget
* was found.
if (node == NULL)
return NULL;
- if (NODE_INFO (node)->type == NODE_TYPE_MENU)
- {
- GtkWidget *proxy = NODE_INFO (node)->proxy;
-
- return gtk_menu_item_get_submenu (GTK_MENU_ITEM (proxy));
- }
- else
- return NODE_INFO (node)->proxy;
+ return NODE_INFO (node)->proxy;
}
static void